#define _CRT_SECURE_NO_WARNINGS 1
#include"DList.h"

void TestDList1()
{
	//DLTNode* plist = NULL;
	//DListInit(&plist);

	DLTNode* plist = DListInit();

	DListPushBack(plist, 1);
	DListPushBack(plist, 2);
	DListPushBack(plist, 3);
	DListPushBack(plist, 4);
	DListPrint(plist);
	DListPopBack(plist);
	DListPrint(plist);
	DListDestroy(plist);
}

void TestDList2()
{
	DLTNode* plist = DListInit();

	DListPushBack(plist, 1);
	DListPushBack(plist, 2);
	DListPushBack(plist, 3);
	DListPushBack(plist, 4);
	DListPushFront(plist, -1);
	DListPrint(plist);
	DListPopFront(plist);
	DListPrint(plist);
	DListDestroy(plist);
}

int main()
{
	//TestDList1();
	TestDList2();
	return 0;
}